<?php

class GDGE_Resource_Validator_Array implements GDGE_Resource_Validator_Interface
{
	private $_validResources;
	
	public function __construct($validResources)
	{
		$this->_validResources = $validResources;
	}
	
	public function isValid($resource)
	{
		return array_search($resource, $this->_validResources) !== false;
	}
}